package lab02.test09;

public class Student {
    //属性：有“学号”、“班号”、“姓名”、“性别”、“年龄”
    String sno;
    String code;
    String  name;
    String gender;
    int age;

    //方法:有“获得学号”、“获得班号”、“获得性别”、“获得姓名”、“获得年龄”、“获得年龄”。

    public void setSno(String sno) {
        this.sno = sno;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return sno+code+name+gender+age;
    }
}

